Integrand size = 31, antiderivative size = 145 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {3 e (b d-a e) (b B d+A b e-2 a B e) x}{b^4}-\frac {(A b-a B) (b d-a e)^3}{b^5 (a+b x)}+\frac {e^2 (3 b B d+A b e-4 a B e) (a+b x)^2}{2 b^5}+\frac {B e^3 (a+b x)^3}{3 b^5}+\frac {(b d-a e)^2 (b B d+3 A b e-4 a B e) \log (a+b x)}{b^5} \]
3*e*(-a*e+b*d)*(A*b*e-2*B*a*e+B*b*d)*x/b^4-(A*b-B*a)*(-a*e+b*d)^3/b^5/(b*x +a)+1/2*e^2*(A*b*e-4*B*a*e+3*B*b*d)*(b*x+a)^2/b^5+1/3*B*e^3*(b*x+a)^3/b^5+ (-a*e+b*d)^2*(3*A*b*e-4*B*a*e+B*b*d)*ln(b*x+a)/b^5
Time = 0.08 (sec) , antiderivative size = 250, normalized size of antiderivative = 1.72 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {B \left (-6 a^4 e^3+18 a^3 b e^2 (d+e x)+6 a^2 b^2 e \left (-3 d^2-6 d e x+2 e^2 x^2\right )+b^4 e x^2 \left (18 d^2+9 d e x+2 e^2 x^2\right )+a b^3 \left (6 d^3+18 d^2 e x-27 d e^2 x^2-4 e^3 x^3\right )\right )-3 A b \left (-2 a^3 e^3+2 a^2 b e^2 (3 d+2 e x)+3 a b^2 e \left (-2 d^2-2 d e x+e^2 x^2\right )+b^3 \left (2 d^3-6 d e^2 x^2-e^3 x^3\right )\right )+6 (b d-a e)^2 (b B d+3 A b e-4 a B e) (a+b x) \log (a+b x)}{6 b^5 (a+b x)} \]
(B*(-6*a^4*e^3 + 18*a^3*b*e^2*(d + e*x) + 6*a^2*b^2*e*(-3*d^2 - 6*d*e*x + 2*e^2*x^2) + b^4*e*x^2*(18*d^2 + 9*d*e*x + 2*e^2*x^2) + a*b^3*(6*d^3 + 18* d^2*e*x - 27*d*e^2*x^2 - 4*e^3*x^3)) - 3*A*b*(-2*a^3*e^3 + 2*a^2*b*e^2*(3* d + 2*e*x) + 3*a*b^2*e*(-2*d^2 - 2*d*e*x + e^2*x^2) + b^3*(2*d^3 - 6*d*e^2 *x^2 - e^3*x^3)) + 6*(b*d - a*e)^2*(b*B*d + 3*A*b*e - 4*a*B*e)*(a + b*x)*L og[a + b*x])/(6*b^5*(a + b*x))
Time = 0.39 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {1184, 27, 86, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx\) |
\(\Big \downarrow \) 1184 |
\(\displaystyle b^2 \int \frac {(A+B x) (d+e x)^3}{b^2 (a+b x)^2}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \int \frac {(A+B x) (d+e x)^3}{(a+b x)^2}dx\) |
\(\Big \downarrow \) 86 |
\(\displaystyle \int \left (\frac {e^2 (a+b x) (-4 a B e+A b e+3 b B d)}{b^4}+\frac {(b d-a e)^2 (-4 a B e+3 A b e+b B d)}{b^4 (a+b x)}+\frac {(A b-a B) (b d-a e)^3}{b^4 (a+b x)^2}+\frac {3 e (b d-a e) (-2 a B e+A b e+b B d)}{b^4}+\frac {B e^3 (a+b x)^2}{b^4}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {e^2 (a+b x)^2 (-4 a B e+A b e+3 b B d)}{2 b^5}-\frac {(A b-a B) (b d-a e)^3}{b^5 (a+b x)}+\frac {(b d-a e)^2 \log (a+b x) (-4 a B e+3 A b e+b B d)}{b^5}+\frac {3 e x (b d-a e) (-2 a B e+A b e+b B d)}{b^4}+\frac {B e^3 (a+b x)^3}{3 b^5}\) |
(3*e*(b*d - a*e)*(b*B*d + A*b*e - 2*a*B*e)*x)/b^4 - ((A*b - a*B)*(b*d - a* e)^3)/(b^5*(a + b*x)) + (e^2*(3*b*B*d + A*b*e - 4*a*B*e)*(a + b*x)^2)/(2*b ^5) + (B*e^3*(a + b*x)^3)/(3*b^5) + ((b*d - a*e)^2*(b*B*d + 3*A*b*e - 4*a* B*e)*Log[a + b*x])/b^5
3.17.94.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_ .), x_] :> Int[ExpandIntegrand[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && ((ILtQ[n, 0] && ILtQ[p, 0]) || EqQ[p, 1 ] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_) + (b_.)*(x_ ) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[1/c^p Int[(d + e*x)^m*(f + g*x )^n*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n}, x] && E qQ[b^2 - 4*a*c, 0] && IntegerQ[p]
Time = 0.24 (sec) , antiderivative size = 277, normalized size of antiderivative = 1.91
method | result | size |
norman | \(\frac {\frac {B \,e^{3} x^{4}}{3 b}-\frac {e \left (3 A a b \,e^{2}-6 A \,b^{2} d e -4 a^{2} B \,e^{2}+9 B a b d e -6 B \,b^{2} d^{2}\right ) x^{2}}{2 b^{3}}+\frac {e^{2} \left (3 A b e -4 B a e +9 B b d \right ) x^{3}}{6 b^{2}}-\frac {\left (3 A \,a^{3} b \,e^{3}-6 A \,a^{2} b^{2} d \,e^{2}+3 A a \,b^{3} d^{2} e -A \,d^{3} b^{4}-4 B \,e^{3} a^{4}+9 B \,a^{3} b d \,e^{2}-6 B \,a^{2} b^{2} d^{2} e +B a \,b^{3} d^{3}\right ) x}{b^{4} a}}{b x +a}+\frac {\left (3 A \,a^{2} b \,e^{3}-6 A a \,b^{2} d \,e^{2}+3 A \,b^{3} d^{2} e -4 B \,e^{3} a^{3}+9 B \,a^{2} b d \,e^{2}-6 B a \,b^{2} d^{2} e +B \,b^{3} d^{3}\right ) \ln \left (b x +a \right )}{b^{5}}\) | \(277\) |
default | \(-\frac {e \left (-\frac {1}{3} b^{2} B \,x^{3} e^{2}-\frac {1}{2} A \,b^{2} e^{2} x^{2}+B a b \,e^{2} x^{2}-\frac {3}{2} B \,b^{2} d e \,x^{2}+2 A a b \,e^{2} x -3 A \,b^{2} d e x -3 B \,a^{2} e^{2} x +6 B a b d e x -3 B \,b^{2} d^{2} x \right )}{b^{4}}+\frac {\left (3 A \,a^{2} b \,e^{3}-6 A a \,b^{2} d \,e^{2}+3 A \,b^{3} d^{2} e -4 B \,e^{3} a^{3}+9 B \,a^{2} b d \,e^{2}-6 B a \,b^{2} d^{2} e +B \,b^{3} d^{3}\right ) \ln \left (b x +a \right )}{b^{5}}-\frac {-A \,a^{3} b \,e^{3}+3 A \,a^{2} b^{2} d \,e^{2}-3 A a \,b^{3} d^{2} e +A \,d^{3} b^{4}+B \,e^{3} a^{4}-3 B \,a^{3} b d \,e^{2}+3 B \,a^{2} b^{2} d^{2} e -B a \,b^{3} d^{3}}{b^{5} \left (b x +a \right )}\) | \(278\) |
risch | \(\frac {e^{3} B \,x^{3}}{3 b^{2}}+\frac {e^{3} A \,x^{2}}{2 b^{2}}-\frac {e^{3} B a \,x^{2}}{b^{3}}+\frac {3 e^{2} B d \,x^{2}}{2 b^{2}}-\frac {2 e^{3} A a x}{b^{3}}+\frac {3 e^{2} A d x}{b^{2}}+\frac {3 e^{3} B \,a^{2} x}{b^{4}}-\frac {6 e^{2} B a d x}{b^{3}}+\frac {3 e B \,d^{2} x}{b^{2}}+\frac {A \,a^{3} e^{3}}{b^{4} \left (b x +a \right )}-\frac {3 A \,a^{2} d \,e^{2}}{b^{3} \left (b x +a \right )}+\frac {3 A a \,d^{2} e}{b^{2} \left (b x +a \right )}-\frac {A \,d^{3}}{b \left (b x +a \right )}-\frac {B \,e^{3} a^{4}}{b^{5} \left (b x +a \right )}+\frac {3 B \,a^{3} d \,e^{2}}{b^{4} \left (b x +a \right )}-\frac {3 B \,a^{2} d^{2} e}{b^{3} \left (b x +a \right )}+\frac {B a \,d^{3}}{b^{2} \left (b x +a \right )}+\frac {3 \ln \left (b x +a \right ) A \,a^{2} e^{3}}{b^{4}}-\frac {6 \ln \left (b x +a \right ) A a d \,e^{2}}{b^{3}}+\frac {3 \ln \left (b x +a \right ) A \,d^{2} e}{b^{2}}-\frac {4 \ln \left (b x +a \right ) B \,e^{3} a^{3}}{b^{5}}+\frac {9 \ln \left (b x +a \right ) B \,a^{2} d \,e^{2}}{b^{4}}-\frac {6 \ln \left (b x +a \right ) B a \,d^{2} e}{b^{3}}+\frac {\ln \left (b x +a \right ) B \,d^{3}}{b^{2}}\) | \(376\) |
parallelrisch | \(\frac {-24 B \,e^{3} a^{4}-6 A \,d^{3} b^{4}-36 B \ln \left (b x +a \right ) a^{2} b^{2} d^{2} e -27 B \,x^{2} a \,b^{3} d \,e^{2}+18 A \ln \left (b x +a \right ) a \,b^{3} d^{2} e +54 B \ln \left (b x +a \right ) a^{3} b d \,e^{2}-24 B \ln \left (b x +a \right ) x \,a^{3} b \,e^{3}-36 A \ln \left (b x +a \right ) a^{2} b^{2} d \,e^{2}+18 A \ln \left (b x +a \right ) x \,b^{4} d^{2} e +18 A \ln \left (b x +a \right ) x \,a^{2} b^{2} e^{3}-24 B \ln \left (b x +a \right ) a^{4} e^{3}+3 A \,x^{3} b^{4} e^{3}+2 B \,x^{4} e^{3} b^{4}+6 B a \,b^{3} d^{3}+18 A \,a^{3} b \,e^{3}+6 B \ln \left (b x +a \right ) x \,b^{4} d^{3}+18 A \ln \left (b x +a \right ) a^{3} b \,e^{3}+6 B \ln \left (b x +a \right ) a \,b^{3} d^{3}-4 B \,x^{3} a \,b^{3} e^{3}+9 B \,x^{3} b^{4} d \,e^{2}-9 A \,x^{2} a \,b^{3} e^{3}+18 A \,x^{2} b^{4} d \,e^{2}+12 B \,x^{2} a^{2} b^{2} e^{3}+18 B \,x^{2} b^{4} d^{2} e +54 B \,a^{3} b d \,e^{2}-36 B \,a^{2} b^{2} d^{2} e -36 A \ln \left (b x +a \right ) x a \,b^{3} d \,e^{2}+54 B \ln \left (b x +a \right ) x \,a^{2} b^{2} d \,e^{2}-36 B \ln \left (b x +a \right ) x a \,b^{3} d^{2} e +18 A a \,b^{3} d^{2} e -36 A \,a^{2} b^{2} d \,e^{2}}{6 b^{5} \left (b x +a \right )}\) | \(462\) |
(1/3*B*e^3/b*x^4-1/2*e*(3*A*a*b*e^2-6*A*b^2*d*e-4*B*a^2*e^2+9*B*a*b*d*e-6* B*b^2*d^2)/b^3*x^2+1/6*e^2*(3*A*b*e-4*B*a*e+9*B*b*d)/b^2*x^3-(3*A*a^3*b*e^ 3-6*A*a^2*b^2*d*e^2+3*A*a*b^3*d^2*e-A*b^4*d^3-4*B*a^4*e^3+9*B*a^3*b*d*e^2- 6*B*a^2*b^2*d^2*e+B*a*b^3*d^3)/b^4/a*x)/(b*x+a)+1/b^5*(3*A*a^2*b*e^3-6*A*a *b^2*d*e^2+3*A*b^3*d^2*e-4*B*a^3*e^3+9*B*a^2*b*d*e^2-6*B*a*b^2*d^2*e+B*b^3 *d^3)*ln(b*x+a)
Leaf count of result is larger than twice the leaf count of optimal. 417 vs. \(2 (140) = 280\).
Time = 0.69 (sec) , antiderivative size = 417, normalized size of antiderivative = 2.88 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {2 \, B b^{4} e^{3} x^{4} + 6 \, {\left (B a b^{3} - A b^{4}\right )} d^{3} - 18 \, {\left (B a^{2} b^{2} - A a b^{3}\right )} d^{2} e + 18 \, {\left (B a^{3} b - A a^{2} b^{2}\right )} d e^{2} - 6 \, {\left (B a^{4} - A a^{3} b\right )} e^{3} + {\left (9 \, B b^{4} d e^{2} - {\left (4 \, B a b^{3} - 3 \, A b^{4}\right )} e^{3}\right )} x^{3} + 3 \, {\left (6 \, B b^{4} d^{2} e - 3 \, {\left (3 \, B a b^{3} - 2 \, A b^{4}\right )} d e^{2} + {\left (4 \, B a^{2} b^{2} - 3 \, A a b^{3}\right )} e^{3}\right )} x^{2} + 6 \, {\left (3 \, B a b^{3} d^{2} e - 3 \, {\left (2 \, B a^{2} b^{2} - A a b^{3}\right )} d e^{2} + {\left (3 \, B a^{3} b - 2 \, A a^{2} b^{2}\right )} e^{3}\right )} x + 6 \, {\left (B a b^{3} d^{3} - 3 \, {\left (2 \, B a^{2} b^{2} - A a b^{3}\right )} d^{2} e + 3 \, {\left (3 \, B a^{3} b - 2 \, A a^{2} b^{2}\right )} d e^{2} - {\left (4 \, B a^{4} - 3 \, A a^{3} b\right )} e^{3} + {\left (B b^{4} d^{3} - 3 \, {\left (2 \, B a b^{3} - A b^{4}\right )} d^{2} e + 3 \, {\left (3 \, B a^{2} b^{2} - 2 \, A a b^{3}\right )} d e^{2} - {\left (4 \, B a^{3} b - 3 \, A a^{2} b^{2}\right )} e^{3}\right )} x\right )} \log \left (b x + a\right )}{6 \, {\left (b^{6} x + a b^{5}\right )}} \]
1/6*(2*B*b^4*e^3*x^4 + 6*(B*a*b^3 - A*b^4)*d^3 - 18*(B*a^2*b^2 - A*a*b^3)* d^2*e + 18*(B*a^3*b - A*a^2*b^2)*d*e^2 - 6*(B*a^4 - A*a^3*b)*e^3 + (9*B*b^ 4*d*e^2 - (4*B*a*b^3 - 3*A*b^4)*e^3)*x^3 + 3*(6*B*b^4*d^2*e - 3*(3*B*a*b^3 - 2*A*b^4)*d*e^2 + (4*B*a^2*b^2 - 3*A*a*b^3)*e^3)*x^2 + 6*(3*B*a*b^3*d^2* e - 3*(2*B*a^2*b^2 - A*a*b^3)*d*e^2 + (3*B*a^3*b - 2*A*a^2*b^2)*e^3)*x + 6 *(B*a*b^3*d^3 - 3*(2*B*a^2*b^2 - A*a*b^3)*d^2*e + 3*(3*B*a^3*b - 2*A*a^2*b ^2)*d*e^2 - (4*B*a^4 - 3*A*a^3*b)*e^3 + (B*b^4*d^3 - 3*(2*B*a*b^3 - A*b^4) *d^2*e + 3*(3*B*a^2*b^2 - 2*A*a*b^3)*d*e^2 - (4*B*a^3*b - 3*A*a^2*b^2)*e^3 )*x)*log(b*x + a))/(b^6*x + a*b^5)
Time = 0.72 (sec) , antiderivative size = 257, normalized size of antiderivative = 1.77 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {B e^{3} x^{3}}{3 b^{2}} + x^{2} \left (\frac {A e^{3}}{2 b^{2}} - \frac {B a e^{3}}{b^{3}} + \frac {3 B d e^{2}}{2 b^{2}}\right ) + x \left (- \frac {2 A a e^{3}}{b^{3}} + \frac {3 A d e^{2}}{b^{2}} + \frac {3 B a^{2} e^{3}}{b^{4}} - \frac {6 B a d e^{2}}{b^{3}} + \frac {3 B d^{2} e}{b^{2}}\right ) + \frac {A a^{3} b e^{3} - 3 A a^{2} b^{2} d e^{2} + 3 A a b^{3} d^{2} e - A b^{4} d^{3} - B a^{4} e^{3} + 3 B a^{3} b d e^{2} - 3 B a^{2} b^{2} d^{2} e + B a b^{3} d^{3}}{a b^{5} + b^{6} x} - \frac {\left (a e - b d\right )^{2} \left (- 3 A b e + 4 B a e - B b d\right ) \log {\left (a + b x \right )}}{b^{5}} \]
B*e**3*x**3/(3*b**2) + x**2*(A*e**3/(2*b**2) - B*a*e**3/b**3 + 3*B*d*e**2/ (2*b**2)) + x*(-2*A*a*e**3/b**3 + 3*A*d*e**2/b**2 + 3*B*a**2*e**3/b**4 - 6 *B*a*d*e**2/b**3 + 3*B*d**2*e/b**2) + (A*a**3*b*e**3 - 3*A*a**2*b**2*d*e** 2 + 3*A*a*b**3*d**2*e - A*b**4*d**3 - B*a**4*e**3 + 3*B*a**3*b*d*e**2 - 3* B*a**2*b**2*d**2*e + B*a*b**3*d**3)/(a*b**5 + b**6*x) - (a*e - b*d)**2*(-3 *A*b*e + 4*B*a*e - B*b*d)*log(a + b*x)/b**5
Time = 0.20 (sec) , antiderivative size = 273, normalized size of antiderivative = 1.88 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {{\left (B a b^{3} - A b^{4}\right )} d^{3} - 3 \, {\left (B a^{2} b^{2} - A a b^{3}\right )} d^{2} e + 3 \, {\left (B a^{3} b - A a^{2} b^{2}\right )} d e^{2} - {\left (B a^{4} - A a^{3} b\right )} e^{3}}{b^{6} x + a b^{5}} + \frac {2 \, B b^{2} e^{3} x^{3} + 3 \, {\left (3 \, B b^{2} d e^{2} - {\left (2 \, B a b - A b^{2}\right )} e^{3}\right )} x^{2} + 6 \, {\left (3 \, B b^{2} d^{2} e - 3 \, {\left (2 \, B a b - A b^{2}\right )} d e^{2} + {\left (3 \, B a^{2} - 2 \, A a b\right )} e^{3}\right )} x}{6 \, b^{4}} + \frac {{\left (B b^{3} d^{3} - 3 \, {\left (2 \, B a b^{2} - A b^{3}\right )} d^{2} e + 3 \, {\left (3 \, B a^{2} b - 2 \, A a b^{2}\right )} d e^{2} - {\left (4 \, B a^{3} - 3 \, A a^{2} b\right )} e^{3}\right )} \log \left (b x + a\right )}{b^{5}} \]
((B*a*b^3 - A*b^4)*d^3 - 3*(B*a^2*b^2 - A*a*b^3)*d^2*e + 3*(B*a^3*b - A*a^ 2*b^2)*d*e^2 - (B*a^4 - A*a^3*b)*e^3)/(b^6*x + a*b^5) + 1/6*(2*B*b^2*e^3*x ^3 + 3*(3*B*b^2*d*e^2 - (2*B*a*b - A*b^2)*e^3)*x^2 + 6*(3*B*b^2*d^2*e - 3* (2*B*a*b - A*b^2)*d*e^2 + (3*B*a^2 - 2*A*a*b)*e^3)*x)/b^4 + (B*b^3*d^3 - 3 *(2*B*a*b^2 - A*b^3)*d^2*e + 3*(3*B*a^2*b - 2*A*a*b^2)*d*e^2 - (4*B*a^3 - 3*A*a^2*b)*e^3)*log(b*x + a)/b^5
Leaf count of result is larger than twice the leaf count of optimal. 293 vs. \(2 (140) = 280\).
Time = 0.27 (sec) , antiderivative size = 293, normalized size of antiderivative = 2.02 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=\frac {{\left (B b^{3} d^{3} - 6 \, B a b^{2} d^{2} e + 3 \, A b^{3} d^{2} e + 9 \, B a^{2} b d e^{2} - 6 \, A a b^{2} d e^{2} - 4 \, B a^{3} e^{3} + 3 \, A a^{2} b e^{3}\right )} \log \left ({\left | b x + a \right |}\right )}{b^{5}} + \frac {2 \, B b^{4} e^{3} x^{3} + 9 \, B b^{4} d e^{2} x^{2} - 6 \, B a b^{3} e^{3} x^{2} + 3 \, A b^{4} e^{3} x^{2} + 18 \, B b^{4} d^{2} e x - 36 \, B a b^{3} d e^{2} x + 18 \, A b^{4} d e^{2} x + 18 \, B a^{2} b^{2} e^{3} x - 12 \, A a b^{3} e^{3} x}{6 \, b^{6}} + \frac {B a b^{3} d^{3} - A b^{4} d^{3} - 3 \, B a^{2} b^{2} d^{2} e + 3 \, A a b^{3} d^{2} e + 3 \, B a^{3} b d e^{2} - 3 \, A a^{2} b^{2} d e^{2} - B a^{4} e^{3} + A a^{3} b e^{3}}{{\left (b x + a\right )} b^{5}} \]
(B*b^3*d^3 - 6*B*a*b^2*d^2*e + 3*A*b^3*d^2*e + 9*B*a^2*b*d*e^2 - 6*A*a*b^2 *d*e^2 - 4*B*a^3*e^3 + 3*A*a^2*b*e^3)*log(abs(b*x + a))/b^5 + 1/6*(2*B*b^4 *e^3*x^3 + 9*B*b^4*d*e^2*x^2 - 6*B*a*b^3*e^3*x^2 + 3*A*b^4*e^3*x^2 + 18*B* b^4*d^2*e*x - 36*B*a*b^3*d*e^2*x + 18*A*b^4*d*e^2*x + 18*B*a^2*b^2*e^3*x - 12*A*a*b^3*e^3*x)/b^6 + (B*a*b^3*d^3 - A*b^4*d^3 - 3*B*a^2*b^2*d^2*e + 3* A*a*b^3*d^2*e + 3*B*a^3*b*d*e^2 - 3*A*a^2*b^2*d*e^2 - B*a^4*e^3 + A*a^3*b* e^3)/((b*x + a)*b^5)
Time = 0.11 (sec) , antiderivative size = 293, normalized size of antiderivative = 2.02 \[ \int \frac {(A+B x) (d+e x)^3}{a^2+2 a b x+b^2 x^2} \, dx=x^2\,\left (\frac {A\,e^3+3\,B\,d\,e^2}{2\,b^2}-\frac {B\,a\,e^3}{b^3}\right )-x\,\left (\frac {2\,a\,\left (\frac {A\,e^3+3\,B\,d\,e^2}{b^2}-\frac {2\,B\,a\,e^3}{b^3}\right )}{b}-\frac {3\,d\,e\,\left (A\,e+B\,d\right )}{b^2}+\frac {B\,a^2\,e^3}{b^4}\right )+\frac {\ln \left (a+b\,x\right )\,\left (-4\,B\,a^3\,e^3+9\,B\,a^2\,b\,d\,e^2+3\,A\,a^2\,b\,e^3-6\,B\,a\,b^2\,d^2\,e-6\,A\,a\,b^2\,d\,e^2+B\,b^3\,d^3+3\,A\,b^3\,d^2\,e\right )}{b^5}-\frac {B\,a^4\,e^3-3\,B\,a^3\,b\,d\,e^2-A\,a^3\,b\,e^3+3\,B\,a^2\,b^2\,d^2\,e+3\,A\,a^2\,b^2\,d\,e^2-B\,a\,b^3\,d^3-3\,A\,a\,b^3\,d^2\,e+A\,b^4\,d^3}{b\,\left (x\,b^5+a\,b^4\right )}+\frac {B\,e^3\,x^3}{3\,b^2} \]
x^2*((A*e^3 + 3*B*d*e^2)/(2*b^2) - (B*a*e^3)/b^3) - x*((2*a*((A*e^3 + 3*B* d*e^2)/b^2 - (2*B*a*e^3)/b^3))/b - (3*d*e*(A*e + B*d))/b^2 + (B*a^2*e^3)/b ^4) + (log(a + b*x)*(B*b^3*d^3 - 4*B*a^3*e^3 + 3*A*a^2*b*e^3 + 3*A*b^3*d^2 *e - 6*A*a*b^2*d*e^2 - 6*B*a*b^2*d^2*e + 9*B*a^2*b*d*e^2))/b^5 - (A*b^4*d^ 3 + B*a^4*e^3 - A*a^3*b*e^3 - B*a*b^3*d^3 + 3*A*a^2*b^2*d*e^2 + 3*B*a^2*b^ 2*d^2*e - 3*A*a*b^3*d^2*e - 3*B*a^3*b*d*e^2)/(b*(a*b^4 + b^5*x)) + (B*e^3* x^3)/(3*b^2)